Matthias Clasen [Wed, 5 Sep 2018 23:54:32 +0000 (19:54 -0400)]
Fix portal path handling
This was broken when I recently introduced this helper
function.
Benjamin Otte [Wed, 5 Sep 2018 14:24:25 +0000 (16:24 +0200)]
rendernodepaintable: Fix clipping
We need to translate before clipping, otherwise we clip in totally the
wrong place.
Benjamin Otte [Wed, 5 Sep 2018 04:33:12 +0000 (06:33 +0200)]
iconhelper: Fix drawing of empty and paintable helpers
Empty helpers did try to draw a NULL paintable (not good) and in the
non-null case code used the wrong width/height.
Timm Bäder [Tue, 4 Sep 2018 10:02:05 +0000 (10:02 +0000)]
Merge branch 'gtkbbox-doc-fix' into 'master'
Minor fixes in documentation of gtkbbox
See merge request GNOME/gtk!318
Lennart Buhl [Mon, 3 Sep 2018 17:53:16 +0000 (19:53 +0200)]
Minor fixes in documentation of gtkbbox
Ask Hjorth Larsen [Sun, 2 Sep 2018 21:46:33 +0000 (23:46 +0200)]
Updated Danish translation of gtk-properties
Ask Hjorth Larsen [Sun, 2 Sep 2018 21:45:47 +0000 (23:45 +0200)]
Updated Danish translation of gtk
Ask Hjorth Larsen [Sun, 2 Sep 2018 21:19:35 +0000 (23:19 +0200)]
Updated Danish translation of gtk
Ask Hjorth Larsen [Sun, 2 Sep 2018 19:42:45 +0000 (21:42 +0200)]
Updated Danish translation of gtk-properties
Daniel Boles [Sun, 2 Sep 2018 08:21:47 +0000 (09:21 +0100)]
Adwaita: Regenerate CSS to get window.devel styles
This step was missed before, again.
SASS 3.6 emits rgba(0, 0, 0, 0) instead of transparent, so it wants to
change those too, but that patch was only committed in March and isn't
being backported to the previous stable, so I don't know if others'
versions will do the same - so until it's shown that anyone else (A) is
regenerating CSS and (B) also has 3.6, I'm skipping those changes. See:
https://github.com/sass/libsass/commit/
c287f312ac9735aa274bbce56762391ca348cad9
Piotr Drąg [Fri, 31 Aug 2018 17:47:44 +0000 (19:47 +0200)]
Update Polish translation
Matthias Clasen [Fri, 31 Aug 2018 17:38:01 +0000 (13:38 -0400)]
GtkApplication: Improve the docs
Expand the docs for ::register-session a bit.
Matthias Clasen [Fri, 31 Aug 2018 17:23:59 +0000 (13:23 -0400)]
Avoid a pointless goto
We can just return here.
Matthias Clasen [Fri, 31 Aug 2018 17:23:25 +0000 (13:23 -0400)]
Add a helpful comment
Matthias Clasen [Thu, 30 Aug 2018 05:06:51 +0000 (01:06 -0400)]
GtkApplication: track screensaver state
A number of applications want to track the state of the screensaver.
Make this information available as a boolean property. We only listen
for state changes when ::register-session is set to TRUE.
This is implemented for unsandboxed D-Bus access by talking
directly to org.gnome.ScreenSaver or org.freedesktop.ScreenSaver,
and for sandboxed D-Bus by using a (new) portal API.
A Quartz implementation is missing.
Matthias Clasen [Thu, 30 Aug 2018 20:38:03 +0000 (16:38 -0400)]
GtkApplication: Respect GTK_USE_PORTAL
When the environment variable is set, don't connect
to the session manager, but instead rely on the
inhibit portal.
Matthias Clasen [Thu, 30 Aug 2018 17:13:45 +0000 (13:13 -0400)]
file chooser portal: use request path utilities
Less code duplication, more sticky toffee!
Matthias Clasen [Thu, 30 Aug 2018 17:12:18 +0000 (13:12 -0400)]
print portal: use request path utilities
Less code duplication, more cookies!
Matthias Clasen [Thu, 30 Aug 2018 17:11:51 +0000 (13:11 -0400)]
color picker portal: Add request path utility
Less code duplication, more cake!
Matthias Clasen [Thu, 30 Aug 2018 17:05:55 +0000 (13:05 -0400)]
Add utility functions for portal paths
The paths that we create for requests and sessions
need some icky code to create. Keep it in one place.
Marek Cernocky [Thu, 30 Aug 2018 14:51:17 +0000 (16:51 +0200)]
Updated Czech translation
Marek Cernocky [Thu, 30 Aug 2018 12:45:16 +0000 (14:45 +0200)]
Updated Czech translation
Jakub Steiner [Thu, 30 Aug 2018 07:40:46 +0000 (07:40 +0000)]
Merge branch 'selection-mode-separator' into 'master'
Adwaita: Add color to separator.selection-mode
See merge request GNOME/gtk!309
Matthias Clasen [Wed, 29 Aug 2018 23:55:58 +0000 (19:55 -0400)]
Add a missing cast
This fixes a warning introduced in the previous commit.
Aurimas Černius [Wed, 29 Aug 2018 19:23:47 +0000 (22:23 +0300)]
Updated Lithuanian translation
Matthias Clasen [Wed, 29 Aug 2018 16:35:12 +0000 (12:35 -0400)]
The file chooser is no box anymore
Don't treat it as one, it does not like it.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1297
Anders Jonsson [Tue, 28 Aug 2018 21:11:58 +0000 (21:11 +0000)]
Update Swedish translation
Kai Willadsen [Tue, 28 Aug 2018 20:14:16 +0000 (20:14 +0000)]
FileChooserWidget: Don't show recent items with private hint set
Piotr Drąg [Tue, 28 Aug 2018 16:49:34 +0000 (18:49 +0200)]
Update Polish translation
Matthias Clasen [Tue, 28 Aug 2018 16:24:13 +0000 (12:24 -0400)]
Fix a typo
Its Hieroglyphs!
Closes: #1292
Timm Bäder [Tue, 28 Aug 2018 14:49:37 +0000 (14:49 +0000)]
Merge branch 'revealer-clipping' into 'master'
revealer: Only clip child when animating
See merge request GNOME/gtk!301
Rafael Fontenelle [Tue, 28 Aug 2018 03:28:14 +0000 (03:28 +0000)]
Update Brazilian Portuguese translation
Timm Bäder [Mon, 27 Aug 2018 16:55:31 +0000 (18:55 +0200)]
Revert "paned: Use a GtkIcon as separator"
This reverts commit
749ef4d71ca018a18fd608bf3b2e4c022727e2ae.
The GtkIcon and GtkGizmo measure code is different, the former uses
-gtk-icon-size.
Timm Bäder [Mon, 27 Aug 2018 16:53:56 +0000 (18:53 +0200)]
box: Remove gtk_box_get_size
One function to measure the box in the opposite of its internal
direction is enough.
Timm Bäder [Mon, 27 Aug 2018 16:48:09 +0000 (18:48 +0200)]
box: Rename avail_size to for_size everywhere
So we call it like we call it everywhere else.
Timm Bäder [Mon, 27 Aug 2018 16:45:03 +0000 (18:45 +0200)]
box: Simplify compute_size_for_orientation
Timm Bäder [Mon, 27 Aug 2018 16:13:01 +0000 (18:13 +0200)]
testoverlaystyleclass: Fix CSS snippet
Timm Bäder [Mon, 27 Aug 2018 15:55:36 +0000 (17:55 +0200)]
remove tests/testinput
It's broken and almost the exact same thing as the drawing demo in
gtk4-demo.
Adrien Plazas [Mon, 27 Aug 2018 11:59:34 +0000 (13:59 +0200)]
Adwaita: Add color to separator.selection-mode
This makes separators to look good when separating two header bars in
selection mode.
https://gitlab.gnome.org/GNOME/gtk/issues/1286
Matthias Clasen [Sun, 26 Aug 2018 23:48:51 +0000 (23:48 +0000)]
Merge branch 'robertroth/readme-fix' into 'master'
docs: README.commits converted to markdown
See merge request GNOME/gtk!304
Robert Roth [Sun, 26 Aug 2018 23:48:51 +0000 (23:48 +0000)]
docs: README.commits converted to markdown
Christian Kirbach [Sun, 26 Aug 2018 17:21:13 +0000 (17:21 +0000)]
Update German translation
Timm Bäder [Sun, 19 Aug 2018 07:25:38 +0000 (09:25 +0200)]
fishbowl: Use a GtkPicture for videos
Timm Bäder [Sun, 19 Aug 2018 07:25:48 +0000 (09:25 +0200)]
menuitem: Remove duplicate include
Timm Bäder [Sun, 19 Aug 2018 07:33:37 +0000 (09:33 +0200)]
picture: Fix doc typo
Timm Bäder [Sun, 19 Aug 2018 11:26:34 +0000 (13:26 +0200)]
spinner: Remove private struct
Since priv->active is equivalent to the widget state being CHECKED, we
can as well use that everywhere.
Timm Bäder [Sun, 19 Aug 2018 15:31:24 +0000 (17:31 +0200)]
colorswatch: Remove dead assignment
Timm Bäder [Sun, 19 Aug 2018 15:45:54 +0000 (17:45 +0200)]
image: Fix gtkdoc property syntax
Timm Bäder [Sun, 19 Aug 2018 17:04:54 +0000 (19:04 +0200)]
paned: Use a GtkIcon as separator
And save a few lines that way.
Timm Bäder [Sun, 19 Aug 2018 18:24:07 +0000 (20:24 +0200)]
menubutton: Remove outdated line
.menu-button is not a style class we use anywhere.
Timm Bäder [Mon, 20 Aug 2018 05:32:07 +0000 (07:32 +0200)]
renderborder: Remove unused function
Timm Bäder [Mon, 20 Aug 2018 05:52:58 +0000 (07:52 +0200)]
renderborder: Pull some locals into the closest scope
Especially the bounds graphene_rect_t, which is unused in the
non-border-image case.
Timm Bäder [Mon, 20 Aug 2018 14:34:50 +0000 (16:34 +0200)]
checkbutton: Remove snapshot implementation
It just does when the default GtkWidget implementation does anyway:
snapshot all child widgets
Timm Bäder [Mon, 20 Aug 2018 14:51:53 +0000 (16:51 +0200)]
radiobutton: Save signal IDs like everything else
Timm Bäder [Mon, 20 Aug 2018 20:18:05 +0000 (22:18 +0200)]
fixed: Remove unused struct member
Ernestas Kulik [Wed, 22 Aug 2018 09:23:50 +0000 (12:23 +0300)]
revealer: Only clip child when animating
Currently, GtkRevealer clips the child if the transition type is
sliding, regardless of whether the animation had already ended. An
example where that is a problem would be in Nautilus: the file
operations popover button is animated on reveal to draw attention, but,
given that the button is in turn stashed inside a revealer with a
sliding animation, things suddenly fall apart.
Matthias Clasen [Mon, 20 Aug 2018 19:15:27 +0000 (19:15 +0000)]
entry completion: Avoid critical warnings
We must not call move-to-rect unless we have
a transient parent.
Matthias Clasen [Mon, 20 Aug 2018 18:26:28 +0000 (18:26 +0000)]
Merge branch 'fix-shifted-scrolling' into 'master'
gtkscrolledwindow: Consider shift key presses when decelerating
Closes #770
See merge request GNOME/gtk!286
Rico Tzschichholz [Mon, 20 Aug 2018 14:57:54 +0000 (16:57 +0200)]
gesturestylus: Add missing array g-i annotation for *_get_axes params
Piotr Drąg [Sun, 19 Aug 2018 20:05:06 +0000 (22:05 +0200)]
Update POTFILES.in
Matthias Clasen [Sun, 19 Aug 2018 03:50:40 +0000 (03:50 +0000)]
Merge branch 'kill-subsurface' into 'master'
Kill subsurfaces
See merge request GNOME/gtk!299
Matthias Clasen [Sun, 19 Aug 2018 03:41:25 +0000 (03:41 +0000)]
Move tools to a subdirectory
A small step towards splitting up gtk/
Matthias Clasen [Sun, 19 Aug 2018 03:22:03 +0000 (03:22 +0000)]
gdk: Drop GDK_SURFACE_SUBSURFACE
None of the backends supports this type anymore.
Matthias Clasen [Sun, 19 Aug 2018 03:21:41 +0000 (03:21 +0000)]
wayland: drop subsurfaces
We don't use them in GTK+ anymore.
Matthias Clasen [Sun, 19 Aug 2018 03:06:48 +0000 (03:06 +0000)]
Drop gtk_window_set_use_subsurface
This is no longer used.
Matthias Clasen [Sun, 19 Aug 2018 03:00:52 +0000 (03:00 +0000)]
entry completion: stop using subsurfaces
Instead, use a popup and gdk_surface_move_to_rect.
I have not tried to reproduce all details of the old
positioning logic, but moving the popup above/below
the entry works as before.
Jonas Ådahl [Fri, 10 Aug 2018 15:11:46 +0000 (17:11 +0200)]
tooltip: Implement positioning using gdk_window_move_to_rect()
In order to make tooltip positioning portable, make use of the
move_to_rect API. Some semantical changes are made, as identical
semantics cannot be implemented using the move-to-rect API.
Primarily the implemented semantics are:
Position the tooltip in the center pixels slightly below (defaults to 4
units below) the tooltipped widget. This is always the case for keyboard
driven tooltips; the case where it tries to avoid the pointer cursor is
not implemented.
For pointer position triggered tooltips, implement the following
additional semantics:
Use the current cursor size to determine the padding used to enlarge the
anchor rectangle. This is to try to avoid the cursor overlapping the
tooltip.
If the anchor rectangle is too tall (meaning if we'd be constrained
and flip on the Y axis, it'd flip too far away from the originally
intended position), rely only on the pointer position to position the
tooltip. The approximate pointer cursor rectangle is used as a anchor
rectangle. Ideally we should use the actual pointer cursor rectangle
(image used as well as hotspot coordinate), but we don't have API to
get that information.
If the anchor rectangle isn't to tall, just make sure the tooltip isn't
too far away from the pointer position on the X axis.
Closes: #134
Closes: #432
Closes: #574
Closes: #579
Closes: #878
Matthias Clasen [Sun, 19 Aug 2018 01:21:46 +0000 (01:21 +0000)]
gdk/wayland: Avoid idempotent wl_subsurface.set_position calls
These may not result on wl_surface.frame callbacks, yet we do trigger
a frame clock tick that would get stuck on the lack of such callback.
https://bugzilla.gnome.org/show_bug.cgi?id=784314
https://gitlab.gnome.org/GNOME/gtk/issues/844
Closes: #844
Matthias Clasen [Sun, 19 Aug 2018 01:16:51 +0000 (01:16 +0000)]
gdk/wayland: Always map windows 'moved-to-rect' as popups
Only popups can make use of the move-to-rect semantics so it makes no
sense to try anything other surface type.
Matthias Clasen [Sun, 19 Aug 2018 01:15:28 +0000 (01:15 +0000)]
gdk/wayland: Don't remap non-subsurface as subsurface
Let's just use the fact that a window was mapped as a subsurface to
remap it above another transient parent instead of relying on the more
complicated 'should-map-as-subsurface' helper function.
Matthias Clasen [Sat, 18 Aug 2018 20:39:56 +0000 (20:39 +0000)]
Merge branch 'win32-smooth-scrolling-gtk4' into 'master'
GDK W32: Support smooth scrolling (GTK4)
See merge request GNOME/gtk!298
Timm Bäder [Sun, 5 Aug 2018 10:35:38 +0000 (12:35 +0200)]
menu: Remove key_controller member
Unused.
Timm Bäder [Sun, 5 Aug 2018 10:26:19 +0000 (12:26 +0200)]
menu: Remove initially_pushed_in flag
Unused.
Timm Bäder [Sun, 5 Aug 2018 10:25:23 +0000 (12:25 +0200)]
menu: Remove seen_item_enter flag
Unused.
Timm Bäder [Sun, 5 Aug 2018 10:20:25 +0000 (12:20 +0200)]
menu: Remove have_position flag
It's always FALSE.
Timm Bäder [Sun, 5 Aug 2018 10:18:06 +0000 (12:18 +0200)]
menu: Remove an unnecessary gtk_widget_destroy() call
The unref will already properly free the menu item's resources.
Руслан Ижбулатов [Tue, 7 Aug 2018 21:29:21 +0000 (21:29 +0000)]
GDK W32: Support smooth scrolling
Set delta_x or delta_y for GdkScrollEvent.
HIWORD (wParam) in WM_MOUSE(H)WHEEL is the scroll delta.
A delta value of WHEEL_DELTA (which is 120) means scrolling
one full unit of something (for example, a line).
The delta should also be multiplied by the value that the
SystemParametersInfo (SPI_GETWHEELSCROLL(LINES|CHARS), 0, &value, 0)
call gives back, unless it gives back 0xffffffff, in which case
it indicates that scrolling is page- or screen-based, not line-based
(GDK doesn't support that at the moment).
Also, all deltas should be inverted, since MS sends negative deltas
when scrolling down (rotating the wheel back, in the direction of
the user).
With deltas set the mode should be set to GDK_SCROLL_SMOOTH.
Fixes issue 1263.
Matthias Clasen [Fri, 17 Aug 2018 21:45:11 +0000 (21:45 +0000)]
Don't fail the build if c++ isn't found
The intention of this check was to skip the keyword
test if no c++ compiler is found. But the meson
docs say that add_languages() will abort unless we
pass required: false.
Matthias Clasen [Fri, 17 Aug 2018 12:35:46 +0000 (12:35 +0000)]
Merge branch 'fix-shell-colorpicker' into 'master'
colorpickershell: Unpack the tuple returned from PickColor()
See merge request GNOME/gtk!296
Matthias Clasen [Wed, 15 Aug 2018 23:21:15 +0000 (23:21 +0000)]
print portal: don't leak window handles
Pointed out by Christian Persch.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1274
Matthias Clasen [Wed, 15 Aug 2018 23:13:15 +0000 (23:13 +0000)]
print portal: Plug a memory leak
Pointed out by Christian Persch.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1271
Matthias Clasen [Wed, 15 Aug 2018 22:53:05 +0000 (22:53 +0000)]
Use defines for bus names
This helps eradicate typos (we had some here).
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1267
Matthias Clasen [Wed, 15 Aug 2018 22:00:13 +0000 (22:00 +0000)]
Merge branch 'sort' into 'master'
updateiconcache: Sort list of entries
See merge request GNOME/gtk!297
Matthias Clasen [Mon, 6 Aug 2018 19:17:06 +0000 (15:17 -0400)]
font chooser: Remove an unneeded ifdef
We can just always create the axes hashtable.
Bernhard M. Wiedemann [Wed, 15 Aug 2018 01:11:21 +0000 (03:11 +0200)]
updateiconcache: Sort list of entries
because filesystem readdir order is indeterministic.
Without this patch, building openSUSE's balsa package
had variations between builds in /usr/share/balsa/icon-theme.cache
Matthias Clasen [Mon, 13 Aug 2018 19:33:56 +0000 (19:33 +0000)]
Merge branch 'master' into 'master'
window: Fix memory leak
See merge request GNOME/gtk!295
Iain Lane [Mon, 13 Aug 2018 12:52:41 +0000 (13:52 +0100)]
colorpickershell: Unpack the tuple returned from PickColor()
When calling PickColor on org.gnome.Shell, we get back an "a{sv}", which
GDBus provides to us as "(a{sv})".
At the minute we're not unpacking this tuple, and so picking fails with
messages like:
GLib-CRITICAL **: 13:38:19.439: g_variant_lookup_value: assertion 'g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{s*}")) || g_variant_is_of_type (dictionary, G_VARIANT_TYPE ("a{o*}"))' failed
Gtk-WARNING **: 13:38:19.439: Picking color failed: No color received
Let's unpack it.
Yi-Soo An [Mon, 13 Aug 2018 08:21:42 +0000 (17:21 +0900)]
window: Fix memory leak
https://gitlab.gnome.org/GNOME/gtk/issues/1268
Emin Tufan Çetin [Sun, 12 Aug 2018 10:47:44 +0000 (10:47 +0000)]
Update Turkish translation
Piotr Drąg [Sat, 11 Aug 2018 22:01:28 +0000 (00:01 +0200)]
Update Polish translation
Matthias Clasen [Tue, 7 Aug 2018 10:01:09 +0000 (10:01 +0000)]
Merge branch 'gtk-4-improve-error-message' into 'master'
gtkplacessidebar: Improve error message when unlocking volume fails
See merge request GNOME/gtk!267
Piotr Drąg [Mon, 6 Aug 2018 17:01:40 +0000 (19:01 +0200)]
Update Polish translation
Matthias Clasen [Sun, 5 Aug 2018 23:53:02 +0000 (19:53 -0400)]
migration guide: Mention GtkEventBox
Its gone.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1243
Carlos Soriano [Sun, 5 Aug 2018 21:59:27 +0000 (21:59 +0000)]
README: Fix Gdk doc website link
Carlos Soriano [Sun, 5 Aug 2018 20:41:29 +0000 (20:41 +0000)]
README: Document nightly docs location
Useful for exposing the documentation early.
segfault [Mon, 23 Jul 2018 21:35:01 +0000 (23:35 +0200)]
gtkplacessidebar: Improve error message when unlocking volume fails
Aurimas Černius [Sun, 5 Aug 2018 13:06:33 +0000 (16:06 +0300)]
Updated Lithuanian translation
Timm Bäder [Sat, 21 Jul 2018 10:28:14 +0000 (12:28 +0200)]
widget: Rename width and height member to {width,height}_request
Because that's much closer to the meaning of those values.
Timm Bäder [Sat, 21 Jul 2018 08:26:06 +0000 (10:26 +0200)]
main: Pass toplevel_widget directly to GtkWidget API
We already have the toplevel as GtkWidget: toplevel_widget.
Timm Bäder [Sat, 21 Jul 2018 08:00:35 +0000 (10:00 +0200)]
sizerequestcache: Inline out-var assignments
The additional assignment to the old result variable just adds an
indirection even though we know the point where we assign it in all
cases. Just pass the values out and return in those cases instead.